package com.xtasz.itom.workorder.dao.impl;


import com.xtasz.itom.core.BaseDao;
import com.xtasz.itom.util.CustomErrorCodes;
import com.xtasz.itom.util.CustomException;
import com.xtasz.itom.workorder.dao.inter.WorkOrderFlowDao;

import java.util.List;

/**
 * Created by ZW on 2017/3/24.
 */
public class WorkOrderFlowDaoImpl extends BaseDao implements WorkOrderFlowDao {
    @Override
    public List getWorkOrderFlow() {
        List list = null;
        try {
            list = this.query("getWorkOrderList");
        } catch (Exception e) {
            e.printStackTrace();
            throw new RuntimeException(new CustomException(
                    CustomErrorCodes.CUSTOM_ERROR_CODE, e));
        }
        return list;
    }
}
